Skip to content

Add edge-case doctests to fibonacci.py (#9943)#13072

Closed
studentpiyush wants to merge 2 commits intoTheAlgorithms:masterfrom
studentpiyush:add-fibonacci-doctests
Closed

Add edge-case doctests to fibonacci.py (#9943)#13072
studentpiyush wants to merge 2 commits intoTheAlgorithms:masterfrom
studentpiyush:add-fibonacci-doctests

Conversation

@studentpiyush
Copy link

@studentpiyush studentpiyush commented Oct 2, 2025

Describe your change:

Add edge-case doctests to the function fib_iterative_yield in maths/fibonacci.py.

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work.
  • PR only changes one algorithm file.
  • All functions have doctests that pass automated testing.
  • Functions and variable names follow Python naming conventions.

Related Issue:

Fixes #9943

@studentpiyush
Copy link
Author

I’ve added edge-case doctests for fib_iterative_yield in fibonacci.py.
It might be useful to extend similar tests to other Fibonacci functions for better coverage. Feedback is welcome!

@algorithms-keeper algorithms-keeper bot added the awaiting reviews This PR is ready to be reviewed label Oct 14, 2025
@cclauss cclauss closed this Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve our test coverage

2 participants